package com.seu.clab.farm.controller;
import com.seu.clab.farm.common.CONST;
import com.seu.clab.farm.common.annotation.TokenRequired;
import com.seu.clab.farm.common.annotation.WebResponse;
import com.seu.clab.farm.model.dao.mapper.LogMapper;
import com.seu.clab.farm.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;

@RestController
@CrossOrigin
@RequestMapping("/log")
@WebResponse
public class LogController {

    @Autowired
    private LogMapper logMapper;

    @Autowired
    private LogService logService;

    @Autowired
    private HttpServletRequest request;

    @TokenRequired
    @GetMapping
    public Object get(@RequestParam Integer pageIndex){
        return logService.getLog(pageIndex);
    }




}
